package com.tzs.dao;

import com.tzs.model.Role;
import com.tzs.model.Student;
import com.tzs.model.User;
import com.tzs.model.UserExport;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserNewMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    int insertRole(@Param("userId")Integer userId,@Param("roleId")Integer roleId);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKeyWithBLOBs(User record);

    int updateByPrimaryKey(User record);
    //根据id批量删除
    int delUserById(@Param("ids") String [] ids);

    List<User> getAllUser(@Param("user") User user);

    List<UserExport> getExecelList();

    int Test(@Param("list") List<Student> list);
}